package com.mc.cloud.mall.categoryProduct.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName CategoryVO
 * @Author MC
 * @Date 2020/11/4 20:17
 * @Version 1.0
 **/
public class CategoryVO implements Serializable {
    
    private Integer id;
    
    private String name;
    
    private Integer type;
    
    private Integer parentId;
    
    private Integer orderNum;
    
    private Date createTime;
    
    private Date updateTime;
    
    private List<CategoryVO> childCategory = new ArrayList<>();
    
    public List<CategoryVO> getChildCategory() {
        return childCategory;
    }
    
    public void setChildCategory(List<CategoryVO> childCategory) {
        this.childCategory = childCategory;
    }
    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
    
    public Integer getType() {
        return type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    public Integer getParentId() {
        return parentId;
    }
    
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    
    public Integer getOrderNum() {
        return orderNum;
    }
    
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    @Override
    public String toString() {
        return "CategoryVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", parentId=" + parentId +
                ", orderNum=" + orderNum +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", childCategory=" + childCategory +
                '}';
    }
}
